"""
    Author:
    Date: 2019-08-17

    屏蔽词管理类
"""

from utils import db


def get_ban_words():
    """ 获取屏蔽词列表 """
    sql = '''
        SELECT      *
        FROM        cmf_config_ban_words
        ORDER BY    id DESC;
    '''
    data = db.query_data_from_db(sql)
    return data if data else []


if __name__ == '__main__':
    print('ok')

